{extend name="../public/header" /}
{block name="body"}
<body>
{include file="../public/common" /}
<!--头部搜索开始-->
<div class="layui-collapse" lay-accordion="">
	<div class="layui-colla-item">
		<h2 class="layui-colla-title">搜索</h2>
		<div class="layui-colla-content layui-show">
			<form class="layui-form" action="{:url('index')}" method="post">
				<div class="layui-form">
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input class="layui-input" name="id" value="{$pageMaps.id|default=''}" placeholder="ID">
						</div>
					</div>
					<div class="layui-inline">
						<div class="layui-input-inline">
							<input class="layui-input" name="uname" value="{$pageMaps.uname|default=''}" placeholder="昵称">
						</div>
					</div>
					
					<div class="layui-inline">
						<button lay-submit class="layui-btn" lay-filter="search"><i class="layui-icon">&#xe615;</i>查找</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<!--头部搜索结束-->
<div class="layui-form">
    <table class="layui-table" lay-size="sm">
        <thead>
        <tr>
            <th width="80">ID</th>
            <th>vip</th>
			<th>昵称</th>
			<th>性别</th>
			<th>境界</th>
			<th>等级</th>
			<th>修为</th>
			<th>灵石</th>
			<th>四维</th>
			<th>装备</th>
            <th width="200">操作</th>
        </tr>
        </thead>
        <tbody>
		{if(count($list)<1)}
            <tr>
                <td colspan="11" align="center">暂无相关数据</td>
            </tr>
            {else /}
			{volist name='list' id='vo' key='k'}
			<tr>
				<td>{$vo.uid}</td>
				<td>{$vo.vip}</td>
				<td>{$vo.uname}</td>
				<td>{if $vo.usex==1}男{else/}女{/if}</td>
				<td>{:state_hone($vo.ulv)['name']}</td>
				<td>{$vo.ulv}</td>
				<td>{$vo.uexp}/{:state_hone($vo.ulv)['exp']}</td>
				<td>
				    普通:{$vo.uyxb}<br>
				    极品:{$vo.uczb}
				</td>
				<td>
					体质:{$vo.utz}<br>
					根骨:{$vo.ugg}<br>
					力量:{$vo.ull}<br>
					敏捷:{$vo.umj}
				</td>
				<td>
				    武器:{$vo.tool1Name}<br>
				    头饰:{$vo.tool2Name}<br>
				    衣服:{$vo.tool3Name}<br>
				    腰带:{$vo.tool4Name}<br>
				    首饰:{$vo.tool5Name}<br>
				    鞋子:{$vo.tool6Name}
				</td>
				<td>
					<a class="layui-btn layui-btn-xs modal-catch" href="{:url('info',array('uid'=>$vo['uid']))}">
						<i class="layui-icon">&#xe642;</i>编辑
					</a>
					<a class="layui-btn layui-btn-xs layui-btn-danger ajax-del" data-url='{:url("del")}' data-field='id' data-value='{$vo.uid}'>
						<i class="layui-icon">&#xe640;</i>删除
					</a>
				</td>
			</tr>
			{/volist}
		{/if}
        </tbody>
    </table>
</div>
<div class="text-right">
    <div class="layui-box layui-laypage layui-laypage-molv" id="layui-laypage">
        {$_page|raw}
    </div>
</div>
</body>
{/block}
{block name="script"}
<script>
layui.use(['jquery','laydate','form','layajax','layer'], function(){
	var $ = layui.jquery
		,form = layui.form
		,laydate = layui.laydate
		,layer = layui.layer
		,layajax = layui.layajax;

	form.render();
});
</script>
{/block}